﻿@model IEnumerable<WebSiteFool.Models.Article>
<ul>
    @if (Model != null && Model.Count() > 0)
    {
        foreach (var item in Model)
        {
        <li>@Html.ActionLink(item.Title.Length > 20 ? item.Title.Substring(0, 20) : item.Title, "Show", "Article", new { Id = item.Id }, new { target = "_blank", @class = "title" })</li>
        }
    }
    <li><a href=@Url.Content("~/Home/AllArticles") class="small-font" target="_blank">View All</a>
    </li>
</ul>
